<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/normalize.css">
    <!-- 先引入swiper -->
    <link rel="stylesheet" href="css/swiper-bundle.min.css">
    <link rel="stylesheet" href="css/index.css">
</head>

<body>

    <section class="wrap">
        <div class="header">黑马面面</div>
        <div class="nav">
            <a href="#">
                <img src="images/nav2.png" alt="">
                <span>笔试</span>
            </a>

            <a href="#">
                <img src="images/nav2.png" alt="">
                <span>笔试</span>
            </a>

            <a href="#">
                <img src="images/nav2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="#">
                <img src="images/nav2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="#">
                <img src="images/nav2.png" alt="">
                <span>笔试</span>
            </a>
            <a href="#">
                <img src="images/nav2.png" alt="">
                <span>笔试</span>
            </a>

        </div>
        <!-- go模块 -->
        <section class="go">
            <img src="" alt="">
        </section>
    </section>
    <!-- 就业指导模块 -->
    <section class="content">
        <!-- 头部 -->
        <div class="con-hd">
            <h4>
                <span class="icon">
                    <img src="images/nav2.png" alt="">
                </span>
                就业指导
            </h4>
            <a href="#" class="more">更多>></a>
        </div>
        <!-- 旋转木马轮播图模块 -->
        <div class="get_job_focus">
            <!-- Swiper -->
            <div class="swiper-container get_job_fo">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <a href="#"><img src="images/tan.bmp" alt=""></a>
                        <p>这是谭傻逼</p>
                    </div>
                    <div class="swiper-slide">
                        <a href="#"><img src="images/背景企业在空白工作的膝上型计算机人-47280682.jpg" alt=""></a>
                        <p>这是谭傻逼</p>
                    </div>
                    <div class="swiper-slide">
                        <a href="#"><img src="images/u=3523062351,3547454778&fm=26&gp=0.jpg" alt=""></a>
                        <p>这是谭傻逼</p>
                    </div>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
                <!-- Add Arrows 添加箭头 -->
                <!-- <div class="swiper-button-next"></div>
                <div class="swiper-button-prev"></div> -->
            </div>
            <!-- Add Arrows 根据需求这个代码放到swiper-container外面 保证箭头在外面 添加箭头-->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </section>
    <!-- 充电学习模块 -->
    <section class="content study_con">
        <!-- 头部 -->
        <div class="con-hd">
            <h4>
                <span class="icon">
                    <img src="images/nav2.png" alt="">
                </span>
                充电学习
            </h4>
            <a href="#" class="more">更多>></a>
        </div>
        <!-- 学习轮播图模块 -->
        <div class="study">
            <!-- Swiper -->
            <div class="swiper-container study_fo">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <img src="images/背景企业在空白工作的膝上型计算机人-47280682.jpg" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p>156人学习</p>

                    </div>
                    <div class="swiper-slide">
                        <img src="images/背景企业在空白工作的膝上型计算机人-47280682.jpg" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p>156人学习</p>

                    </div>
                    <div class="swiper-slide">
                        <img src="images/背景企业在空白工作的膝上型计算机人-47280682.jpg" alt="">
                        <h5>说地道英语，告别中式英语</h5>
                        <p>156人学习</p>

                    </div>
                </div>
                <!-- Add Pagination -->
                <div class="swiper-pagination"></div>
            </div>
        </div>
    </section>
    <!-- footer -->
    <footer class="footer">
        <a href="#" class="item">
            <img src="images/nav2.png" alt="">
            <p>首页</p>
        </a>
        <a href="#" class="item">
            <img src="images/nav2.png" alt="">
            <p>首页</p>
        </a>
        <a href="#" class="item">
            <img src="images/nav2.png" alt="">
            <p>首页</p>
        </a>
        <a href="#" class="item">
            <img src="images/nav2.png" alt="">
            <p>首页</p>
        </a>
    </footer>
    <script src="js/index.js"></script>
    <script src="js/swiper-bundle.min.js"></script>
    <!-- 复制js代码 -->
    <script>
        // 第一个函数调用里面是 就业指导轮播图 沙箱函数
        (function () {
            var swiper = new Swiper('.get_job_fo', {
                // 能够显示 slider的个数（看得到的）
                slidesPerView: 2,
                // 盒子与盒子之间的距离
                spaceBetween: 30,
                // 要不要把最大的放之间显示
                centeredSlides: true,
                loop: true,
                // 使用分页器导航。分页器可使用小圆点样式 这里不需要
                // pagination: {
                //     el: '.swiper-pagination',
                //     clickable: true,
                // },
                // 添加左右箭头
                navigation: {
                    nextEl: '.swiper-button-next',
                    prevEl: '.swiper-button-prev',
                },
            });
        })();

        (function () {
            // swiper-container如果有多个轮播图最好修改一下 会冲突 
            // 从前起类名 实例化起的类名，避免冲突
            var swiper = new Swiper('.study_fo', {
                // 我们可以看到的是两个半
                slidesPerView: 2.5,
                // 图片之间的距离
                spaceBetween: 20,
                // 去掉小圆点
                // pagination: {
                //     el: '.swiper-pagination',
                //     clickable: true,
                // },
            });

        })();
    </script>
</body>

</html>